package com.it.park.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.QuestionOperationService;
import com.it.park.dao.QuestionOperationMapper;
import com.it.park.model.QuestionOperation;

@Service("questionOperationService")
public class QuestionOperationServiceImpl extends BaseServiceImpl<QuestionOperation> implements QuestionOperationService {
	
	@Autowired
	private  QuestionOperationMapper  questionOperationMapper;

	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return questionOperationMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(QuestionOperation record) {
		return questionOperationMapper.insertSelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKeySelective(QuestionOperation record) {
		return questionOperationMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(QuestionOperation record) {
		return questionOperationMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public boolean insert(QuestionOperation record) {
		return questionOperationMapper.insert(record)==1;
	}
	@Override
	public QuestionOperation selectByPrimaryKey(Integer id) {
		return questionOperationMapper.selectByPrimaryKey(id);
	}
	@Override
	public QuestionOperation selectByOperation(QuestionOperation record) {
		return questionOperationMapper.selectByOperation(record);
	}
	

}
